	//倒计时
	function showTime(){
    var endTime=new Date("2016/9/30,12:00:00");//结束时间
	var nowTime=new Date();//当前时间
	var lefttime=parseInt((endTime.getTime()-nowTime.getTime())/1000);//总秒数
	var d=pad(parseInt(lefttime/(24*60*60))); //总秒数除以一天的秒数等于天
	var h=pad(parseInt(lefttime/(60*60)%24));
	var m=pad(parseInt(lefttime/60%60));
	var s=pad(parseInt(lefttime%60));
	document.getElementById('leftTime1').innerHTML=d;
	document.getElementById('leftTime2').innerHTML=h;
	document.getElementById('leftTime3').innerHTML=m;
	document.getElementById('leftTime4').innerHTML=s;
	
	setTimeout(showTime,500);
	}
	showTime();
	function pad(n) {
		return (n < 10 ? '0' : '') + n;
	}
